/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.service;

import java.util.List;

import com.jiadakeji.ppm.modules.sys.utils.UserUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jiadakeji.ppm.common.persistence.Page;
import com.jiadakeji.ppm.common.service.CrudService;
import com.jiadakeji.ppm.modules.business.entity.RoomTypePrice;
import com.jiadakeji.ppm.modules.business.dao.RoomTypePriceDao;

/**
 * 房屋类型价格Service
 * @author HHAOYU
 * @version 2019-07-09
 */
@Service
@Transactional(readOnly = true)
public class RoomTypePriceService extends CrudService<RoomTypePriceDao, RoomTypePrice> {

	@Override
	public RoomTypePrice get(String id) {
		return super.get(id);
	}

	@Override
	public List<RoomTypePrice> findList(RoomTypePrice roomTypePrice) {
		return super.findList(roomTypePrice);
	}

	@Override
	public Page<RoomTypePrice> findPage(Page<RoomTypePrice> page, RoomTypePrice roomTypePrice) {
		return super.findPage(page, roomTypePrice);
	}

	@Override
	@Transactional(readOnly = false)
	public void save(RoomTypePrice roomTypePrice) {
		super.save(roomTypePrice);
		UserUtils.removeCache(UserUtils.CACHE_ROOM_TYPE_PRICE_LIST);
	}


	@Override
	@Transactional(readOnly = false)
	public void delete(RoomTypePrice roomTypePrice) {
		//TODO 删除其它关联表
		
		super.delete(roomTypePrice);
	}

}